package com.ourteam.workspace.domain;
/**
 * Template Name : DTO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Nov 30 16:49:33 CST 2018
 * Auto Generate Date : 2018-11-30 16:50:28
  * Warning ! This file will be overwrite when regenerate !
  * 
 */

import java.util.Map;
import java.util.HashMap;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.beanutils.BeanMap;
import net.dao.IDataPopulateCallback;


public class WorkspaceCompilerBean implements java.io.Serializable {

        
	private static Map<String,String> mappedDaoFields = new HashMap<String,String>();
    
	private com.ourteam.workspace.dao.WorkspaceCompiler workspaceCompiler;

	protected BeanMap getBeanMap(){
	
		return new BeanMap(workspaceCompiler);
	}
	
	static{
				
												
		mappedDaoFields.put("id",com.ourteam.workspace.dao.IWorkspaceCompilerDAO.Id);
		
																																																		
				
																
		mappedDaoFields.put("workspaceId",com.ourteam.workspace.dao.IWorkspaceCompilerDAO.WorkspaceId);
		
																																														
				
																				
		mappedDaoFields.put("compilerName",com.ourteam.workspace.dao.IWorkspaceCompilerDAO.CompilerName);
		
																																										
				
																								
		mappedDaoFields.put("compilerType",com.ourteam.workspace.dao.IWorkspaceCompilerDAO.CompilerType);
		
																																						
				
																												
		mappedDaoFields.put("compilerLogo",com.ourteam.workspace.dao.IWorkspaceCompilerDAO.CompilerLogo);
		
																																		
				
																																
		mappedDaoFields.put("compileCmd",com.ourteam.workspace.dao.IWorkspaceCompilerDAO.CompileCmd);
		
																														
				
																																				
		mappedDaoFields.put("runCmd",com.ourteam.workspace.dao.IWorkspaceCompilerDAO.RunCmd);
		
																										
				
																																								
		mappedDaoFields.put("debugCmd",com.ourteam.workspace.dao.IWorkspaceCompilerDAO.DebugCmd);
		
																						
				
																																												
		mappedDaoFields.put("compilerLocation",com.ourteam.workspace.dao.IWorkspaceCompilerDAO.CompilerLocation);
		
																		
				
																																																
		mappedDaoFields.put("status",com.ourteam.workspace.dao.IWorkspaceCompilerDAO.Status);
		
														
				
																																																				
		mappedDaoFields.put("remarks",com.ourteam.workspace.dao.IWorkspaceCompilerDAO.Remarks);
		
										
				
																																																								
		mappedDaoFields.put("defaultCompiler",com.ourteam.workspace.dao.IWorkspaceCompilerDAO.DefaultCompiler);
		
						
				
				
	}
	
	public static String getMappedDAOField(String aAttrName){
		return mappedDaoFields.get(aAttrName);
	}
	
	
	public WorkspaceCompilerBean() {
		super();
	    		
		this.workspaceCompiler = new com.ourteam.workspace.dao.WorkspaceCompiler();
                
	}
	
		
	public WorkspaceCompilerBean(com.ourteam.workspace.dao.WorkspaceCompiler workspaceCompiler) {
		super();
	
		this.workspaceCompiler = workspaceCompiler;
		
	}
		
		
		
    	
	public com.ourteam.workspace.dao.WorkspaceCompiler convertToWorkspaceCompiler(){
		return this.workspaceCompiler;
	}
	
	public com.ourteam.workspace.dao.WorkspaceCompiler convertTo(){
		return this.workspaceCompiler;
	}
	
			
		
			
			
		
	/**
	 * Get id
	 * 
	 * @return long
	 */
	public long getId(){
		return (long) this.workspaceCompiler.getId();
	}
	
	/**
	 * Set id
	 * 
	 * @parameter long
	 */
	public void setId(long id){
		
		this.workspaceCompiler.setId(id);
	}
		
																									
		
		
					
			
		
	/**
	 * Get workspaceId
	 * 
	 * @return long
	 */
	public long getWorkspaceId(){
		return (long) this.workspaceCompiler.getWorkspaceId();
	}
	
	/**
	 * Set workspaceId
	 * 
	 * @parameter long
	 */
	public void setWorkspaceId(long workspaceId){
		
		this.workspaceCompiler.setWorkspaceId(workspaceId);
	}
		
																							
		
		
							
			
		
	/**
	 * Get compilerName
	 * 
	 * @return String
	 */
	public String getCompilerName(){
		return (String) this.workspaceCompiler.getCompilerName();
	}
	
	/**
	 * Set compilerName
	 * 
	 * @parameter String
	 */
	public void setCompilerName(String compilerName){
		
		this.workspaceCompiler.setCompilerName(compilerName);
	}
		
																					
		
		
									
			
		
	/**
	 * Get compilerType
	 * 
	 * @return String
	 */
	public String getCompilerType(){
		return (String) this.workspaceCompiler.getCompilerType();
	}
	
	/**
	 * Set compilerType
	 * 
	 * @parameter String
	 */
	public void setCompilerType(String compilerType){
		
		this.workspaceCompiler.setCompilerType(compilerType);
	}
		
																			
		
		
											
			
		
	/**
	 * Get compilerLogo
	 * 
	 * @return String
	 */
	public String getCompilerLogo(){
		return (String) this.workspaceCompiler.getCompilerLogo();
	}
	
	/**
	 * Set compilerLogo
	 * 
	 * @parameter String
	 */
	public void setCompilerLogo(String compilerLogo){
		
		this.workspaceCompiler.setCompilerLogo(compilerLogo);
	}
		
																	
		
		
													
			
		
	/**
	 * Get compileCmd
	 * 
	 * @return String
	 */
	public String getCompileCmd(){
		return (String) this.workspaceCompiler.getCompileCmd();
	}
	
	/**
	 * Set compileCmd
	 * 
	 * @parameter String
	 */
	public void setCompileCmd(String compileCmd){
		
		this.workspaceCompiler.setCompileCmd(compileCmd);
	}
		
															
		
		
															
			
		
	/**
	 * Get runCmd
	 * 
	 * @return String
	 */
	public String getRunCmd(){
		return (String) this.workspaceCompiler.getRunCmd();
	}
	
	/**
	 * Set runCmd
	 * 
	 * @parameter String
	 */
	public void setRunCmd(String runCmd){
		
		this.workspaceCompiler.setRunCmd(runCmd);
	}
		
													
		
		
																	
			
		
	/**
	 * Get debugCmd
	 * 
	 * @return String
	 */
	public String getDebugCmd(){
		return (String) this.workspaceCompiler.getDebugCmd();
	}
	
	/**
	 * Set debugCmd
	 * 
	 * @parameter String
	 */
	public void setDebugCmd(String debugCmd){
		
		this.workspaceCompiler.setDebugCmd(debugCmd);
	}
		
											
		
		
																			
			
		
	/**
	 * Get compilerLocation
	 * 
	 * @return String
	 */
	public String getCompilerLocation(){
		return (String) this.workspaceCompiler.getCompilerLocation();
	}
	
	/**
	 * Set compilerLocation
	 * 
	 * @parameter String
	 */
	public void setCompilerLocation(String compilerLocation){
		
		this.workspaceCompiler.setCompilerLocation(compilerLocation);
	}
		
									
		
		
																					
			
		
	/**
	 * Get status
	 * 
	 * @return String
	 */
	public String getStatus(){
		return (String) this.workspaceCompiler.getStatus();
	}
	
	/**
	 * Set status
	 * 
	 * @parameter String
	 */
	public void setStatus(String status){
		
		this.workspaceCompiler.setStatus(status);
	}
		
							
		
		
																							
			
		
	/**
	 * Get remarks
	 * 
	 * @return String
	 */
	public String getRemarks(){
		return (String) this.workspaceCompiler.getRemarks();
	}
	
	/**
	 * Set remarks
	 * 
	 * @parameter String
	 */
	public void setRemarks(String remarks){
		
		this.workspaceCompiler.setRemarks(remarks);
	}
		
					
		
		
																									
			
		
	/**
	 * Get defaultCompiler
	 * 
	 * @return String
	 */
	public String getDefaultCompiler(){
		return (String) this.workspaceCompiler.getDefaultCompiler();
	}
	
	/**
	 * Set defaultCompiler
	 * 
	 * @parameter String
	 */
	public void setDefaultCompiler(String defaultCompiler){
		
		this.workspaceCompiler.setDefaultCompiler(defaultCompiler);
	}
		
			
		
			
			
			
			
			
			
			
			
			
			
			
			
			
			
	
	public int hashCode() {
   		return org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(this);
 	}
	
		
	public boolean equals(Object obj) {
		if (obj == null) {
            return false;
        } // end if

        if ((obj instanceof WorkspaceCompilerBean) == false) {
            return false;
        } // end if

        WorkspaceCompilerBean other = (WorkspaceCompilerBean) obj;
        
        boolean isEqual = false;
        
                
        com.ourteam.workspace.dao.WorkspaceCompiler tempWorkspaceCompiler = other.convertToWorkspaceCompiler();
        
        if(tempWorkspaceCompiler == null || this.workspaceCompiler == null){
        	isEqual = false;
        }
        else if(tempWorkspaceCompiler == this.workspaceCompiler || tempWorkspaceCompiler.equals(this.workspaceCompiler) ){
        	isEqual = true;
        }
        else{
        	isEqual = false;
        }
        
        return isEqual;
	}
	
	
	public static WorkspaceCompilerBean[] toArray(com.ourteam.workspace.dao.WorkspaceCompiler[] aWorkspaceCompilers){
		
		return toArray(aWorkspaceCompilers,null);
	}
	
	public static WorkspaceCompilerBean[] toArray(com.ourteam.workspace.dao.WorkspaceCompiler[] aWorkspaceCompilers , IDataPopulateCallback aCallBack){
		 
		 if(ArrayUtils.isEmpty(aWorkspaceCompilers)){
		 	return new WorkspaceCompilerBean[0];
		 }
		 
		 int length = aWorkspaceCompilers.length;
		 
		 WorkspaceCompilerBean[] beans = new WorkspaceCompilerBean[length];
		  
		 for (int i = 0; i < length; i++) {
			beans[i] = new WorkspaceCompilerBean(aWorkspaceCompilers[i]);
			if(aCallBack != null){
			    aCallBack.populate(beans[i],new Object[]{aWorkspaceCompilers[i]});
			}
		 }
		 
		 return beans;
	 }
	 
	 	 
}